<?php 

namespace Index\Controller;
use Think\Controller;
class PersonalController extends CommonController {
	public function indexAction(){
		$id= I('get.id','');
		$sql = "select username,face,introduce from user where id='{$id}'";
		$res = M()->query($sql);

		$this->assign('res',$res);
		$this->display();
	}
	public function myanswerAction(){
		$id= I('get.id','');
		$sql = "select t1.*,t2.id from answer t1 left join user t2 on t1.uid = t2.id where t2.id='{$id}'";
		$res = M()->query($sql);
		var_dump($res);
		$this->assign('res',$res);
		$this->display();
	}
}